<template>
	<div class="servicePart">
		<el-tabs tab-position="left" class="demo-tabs" v-model="activeName">
			<el-tab-pane v-for="(item, index) in tabs" :key="index" :label="item.label" :name="item.value"></el-tab-pane>
			<ServiceOrder
				:key="activeName"
				:searchConfig="false"
				:auth="{ edit: 'hide' }"
				:menuBtn="menuBtn"
				:queryObj="{ businessType: activeName, creditCode:nowRowData.creditCode}"
			></ServiceOrder>
		</el-tabs>
	</div>
</template>

<script setup lang="ts">
import ServiceOrder from '@/views/datacenter/business/serviceOrder/index.vue'

const activeName = ref('7')

defineProps<{
  nowRowData:any
}>()
const tabs = [
	{ label: '银发顾问', value: '7' },
	{ label: '站点服务', value: '5' },
	{ label: '助餐服务', value: '8' },
]
const menuBtn = [
	{
		icon: 'detail',
		label: '查看详情',
		type: 'primary',
		operate: 'detail',
		auth: 'view_dpCommunityServiceOrder_page',
		text: true,
		show: true,
	},
]
</script>

<style scoped></style>
